<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta id="plat_viewport" name="viewport" content="width=device-width, initial-scale=0.5, user-scalable=no, target-densitydpi=device-dpi">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title>项目-蚂蚁搬运工</title>
    <link rel="shortcut icon" href="<?php echo base_url('file/images/mayi.ico') ?>" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="<?php echo base_url('file/css/wap.css') ?>">
</head>
<body>
<section class="conbg prolist">
    <header class="otherbanner" id="home">
        <h1>项目</h1>
    </header>
    <nav id="nav" class="nav">
        <img src="<?php echo base_url('file/images/nav_img.png') ?>" width="30px">

        <ul class="nav_title">
            <li><a href="<?php echo base_url('home') ?>">首 页</a></li>
            <li><a href="<?php echo base_url('skill') ?>">技 能</a></li>
            <li><a href="<?php echo base_url('project/prolist') ?>">博 客</a></li>
            <li><a href="<?php echo base_url('movie/movielist') ?>">电 影</a></li>
            <li><a href="<?php echo base_url('photo') ?>">相 册</a></li>
            <li><a href="<?php echo base_url('team') ?>">我们团队</a></li>
            <li><a href="<?php echo base_url('about') ?>">关 于</a></li>
        </ul>
    </nav>

    <div class="othercontent" style="padding: 0">
        <div class="list_cate clearfix">
            <div class="cate_tit">项目分类：</div>
            <ul>
                <?php for ($i = 0; $i < count($protype); $i++) { ?>
                    <li value="<?php echo $protype[$i]['typeid']; ?>">
                        <img src="<?php echo base_url('file/images/share_plat1.png') ?>" width="18px">
                        <span><?php echo $protype[$i]['name']; ?></span>
                    </li>
                <?php } ?>
            </ul>
        </div>
        <h1 class="cate_title">最新项目</h1>
        <div class="prolist_con clearfix">
            <ul>
                <?php for($i = 0; $i < count($projects); $i++) { ?>
                    <li class="<?php if ($i % 3 != 0) {echo "m_l_10";} ?>">
                        <a href="<?php echo base_url('project/detail/'.$projects[$i]['proid']); ?>">
                            <div class="project_item">
                                <img src="<?php echo base_url('images/'.$projects[$i]['cover']); ?>" width="100%" height="200px">
                                <p class="substr_2">
                                    <?php echo $projects[$i]['title']; ?>
                                </p>
                                <img class="pro_user" src="<?php echo base_url('file/images/team_user.png') ?>" width="40px">
                                <div class="prolist_info">
                                    <span class="tag"><?php echo $projects[$i]['createtime']; ?></span>
                                    <img class="pro_zan" src="<?php echo base_url('file/images/share_plat1.png') ?>" width="14px">
                                    <span class="tag">54</span>
                                    <span class="cate"><?php echo $projects[$i]['name']; ?></span>
                                </div>
                            </div>
                        </a>
                    </li>
                <?php } ?>
            </ul>
            <button>点击加载更多</button>
        </div>
    </div>
</section>

<script src="<?php echo base_url('file/js/wap.js') ?>" type="text/javascript" charset="utf-8"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script>
    index.nav(100);
    prolist.item_hover();
    project.cateclick();
</script>
</body>
</html>